package com.etime.perfectschool.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.etime.perfectschool.pojo.User;
import org.springframework.stereotype.Repository;
import java.util.Map;

@Repository
public interface UserMapper extends BaseMapper<User> {

    Page<User> getMyAllSchoolNews(int id, IPage<User> iPage);

    Page<User> getMyAllschoolActivies(int id, IPage<User> iPage);

    User getUserByName(String name);

    User getUser(Map<String, Object> map);

    int updateUser(Map<String,Object> map );
}
